package com.ff.xyh.feign.config;

import java.util.concurrent.TimeUnit;

/**
 * 应用于指定对列固定的信息
 * @Auther FF
 * @Date 2023年 01月 09日
 * @Time 00:33
 */
public class MyRabbitConfigProperties {
//    // 定义redisTemplate键过期时间
//    public static final long REDIS_EXPIRE_TIME = 10000;
//    // 定义redisTemplate键过期时间单位
//    public static final TimeUnit REDIS_EXPIRE_TIME_UNIT = TimeUnit.SECONDS;


    // 定义群聊交换机名
    public static final String EXCHANGE_DIRECT_USER = "user.direct.exchange";

    /** 服务器1的数据 */
    /**
     * 消息处理队列
     *    将消息处理后发送到用户消息队列
     */
    public static final String QUEUE_SERVER_MESSAGE_1 = "server.message.q1";
    public static final String ROUTING_KEY_MESSAGE_1 = "MessageServerRoutingKey1";
    public static final String QUEUE_SERVER_MESSAGE_2 = "server.message.q2";
    public static final String ROUTING_KEY_MESSAGE_2 = "MessageServerRoutingKey2";
    //    public static final String ROUTING_KEY_MESSAGE_2 = "UserServerRoutingKey1";

    /**
     * 用户消息队列
     *    将消息发到前端
     */
    public static final String QUEUE_SERVER_USER_1 = "server.user.q1";
    public static final String ROUTING_KEY_USER_1 = "UserServerRoutingKey1";
    public static final String QUEUE_SERVER_USER_2 = "server.user.q2";
    public static final String ROUTING_KEY_USER_2 = "UserServerRoutingKey2";
    //    public static final String ROUTING_KEY_USER_2 = "UserServerRoutingKey1";

    /**
     * 用户锁队列
     *    给登录等待线程解锁
     */
    public static final String QUEUE_SERVER_USER_LOCK_1 = "server.user.lock.q1";
    public static final String ROUTING_KEY_USER_LOCK_1 = "UserLockServerRoutingKey1";
    public static final String QUEUE_SERVER_USER_LOCK_2 = "server.user.lock.q2";
    public static final String ROUTING_KEY_USER_LOCK_2 = "UserLockServerRoutingKey2";



}
